package com.seu.nic.component.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seu.nic.component.unit.BpmCurrentStatePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-05-13
 */
@Mapper
public interface BpmServerCurrentStateMapper extends BaseMapper<BpmCurrentStatePO> {

    List<BpmCurrentStatePO> selectAllBpmCurrentStatePO();

    BpmCurrentStatePO selectBpmCurrentStatePOByWid(@Param("wid") int wid);

    BpmCurrentStatePO selectBpmCurrentStatePOByProcessInstanceId(
            @Param("processInstanceId") String processInstanceId
    );

    void updateBpmCurrentStatePOByProcessInstanceId(
            BpmCurrentStatePO bpmOperaHistoryPO
    );

    void deleteBpmCurrentStatePOByProcessInstanceId(
            @Param("processInstanceId") String processInstanceId
    );
}
